package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.AttractionsComment;
import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

/**
 * @author 猫教授
 * @date 2019/8/13 13:37
 */
public interface IStrategyCommentService {
    /**
     * 保存评论
     * @param comment
     */

    void save(StrategyComment comment);

    /**
     * 查询评论总数
     * @param detailId
     * @return
     */
    Long selectCountByDetailId(Long detailId);

    /**
     * 攻略评论列表显示
     * @param qo
     * @return
     */
    Page<StrategyComment> selectCommentForList(StrategyCommentQuery qo);

    /**
     * 点赞
     * @param toid
     * @param userId
     */
    void commentThumbUp(String toid, Long userId);

}
